package demo.people;

import javax.management.loading.PrivateClassLoader;

public class Course {
	private String cid="";
	private String cname="";
	private String room="";
	private String tname="";

	public Course() {
	}

	public Course(String id, String password, String tName, String  room) {
		super();
		this.cid = id;
		this.cname = password;
		this.room = room;
		this.tname=tName;
	}

	public String getCid() {
		return cid;
	}

	

	public String getCname() {
		return cname;
	}

	public void setCname(String password) {
		this.cname = password;
	}

	public String getRoom() {
		return room;
	}

	public void setRoom(String room) {
		this.room = room;
	}
	public void setCid(String id) {
		this.cid = id;
	}
	public String getTname(){
		return tname;
	}
	public void setTname(String tname){
		this.tname=tname;
	}

	
	public String toString() {
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append(String.format("%s, %s, %s\n", cid, cname, room));
		return stringBuffer.toString();
	}
}
